|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
rev.1.00 dec 01, 2004 page 1 of 46 rej03b0116-0100z description the 32186 group is a 32-bit single-chip risc microcom puter with built-in flash memory. to accomplish high- precision arithmetic operations, it incorporates a fully ieee754 compliant, single-precision fpu. this microcomputer contains a variety of peripheral functio ns. with the software necessary to run these peripheral functions stored in its large-capacity flash memory, this microcomputer meets the needs of application systems for high functionality, high-performance arithmetic capability , and sophisticated control, thereby adaptation to the embedded applications can be easily configured. table 1.0.1 product list note 1: this does not guarantee conti nuous operation and there is a limitation on the length of use (temperature profile). features ? cpu .............................. m32r-fpu core (m32r family common instructio n set + single-precision fpu / bit manipulation instructions) ? pipeline structure .......................................................................................................... ................... 6-stage structure ? instruction set ............................................... ..................................... 100 discrete instruction s / 6 addressing modes ? instruction format .......................................................................................................... ................... 6 bit/32-bit length ? built-in multiplier-accumulator (dsp function instructions) ? minimum instruction execution time .............. .............. .............. ............. 12.5ns (at f(cpuclk) = 80 mhz oper ation) ? built-in flash memory ? built-in ram ? virtual-flash emulation function ............................................................................................ ...... 8 kbytes x 8 blocks ? interrupt controller .............................................................................................. 41 interr upt sources, 8 priority levels ? wait controller ............ .............. .............. ... can be extended 0-15 wait cycles and external signal for each of 4 areas ? i/o port .......................................................................................................... 97 ports (selectable from 3 input levels) ? external interrupt input pin ................................................................................................ ............................... 27 pins ? dmac ........................................................................................................................ .............. ............ .... 10 channels ? multijunction timers (mj t) .................................................................................................. ...................... 55 channels ? a/d converter ................................................................................. 16 channels 10-bit converter (sample & hold x 2) ? serial interface .............. .............. 4 channels (clock synchronous/asynchronous), 2 channels (clock synchronous) ? can (can specification 2.0b active) ......................... ............................. 2 channels, each having 32 message slots ? direct ram interface (dri) ? real-time debugger (rtd) ? non-break debug (nbd) ? jtag (boundary scan function) ? debug interface common to the m32r family (sdi: scalable debug interface) ? package ..................................................................................................................... .... 144 pin lqfp (0.5mm pitch) applications automobile equipment control (e.g., engine, abs, at, ccd, and radar sensing applications), industrial equipment system control, and high-function oa equipment (e.g., ppc) since this group is under development, its specifications are subject to change. type name rom capacity ram capacity frequency power supply voltage temperature range (note 1) at single- supply at double- supplies M32186f8vfp 1 mbytes 64 kbytes 80mhz 5v or 3.3v 5v, 3.3v -40c to +125c rej03b0116-0100z rev.1.00 dec 01, 2004 32186 group 32-bit risc microcomputer
rev.1.00 dec 01, 2004 page 2 of 12 rej03b0116-0100z 32186 group 1.1 outline of the 32186 group 1.1 outline of the 32186 group 1.1.1 m32r family cpu core wi th built-in fpu (m32r-fpu) (1) based on a risc architecture ? the 32186 group (hereafter simply the 32186) is a 32-bit risc single-chip microcomputer. the m32r- fpu incorporates a fully ieee 754-compliant, single- precision fpu in order to materialize the common instruction set and the high-precisi on arithmetic operation of the m32r cpu. the 32186 products are built around the m32r-fpu and incorporates flash memo ry, ram and various peripheral functions, all integrated into a single chip. ? the m32r-fpu is constructed ba sed on a risc architecture. me mory is accessed using load/store instructions, and various arithmetic /logic operations are executed using register-to-register operation instructions. ? the m32r-fpu internally contains sixteen 32-bit gene ral-purpose registers. the in struction set consists of 100 discrete instructions in total (83 instructions common to the m32r family plus 17 fpu and extended instructions). these instructions are either 16 bits or 32 bits long. ? in addition to the ordinary load/store instructions , the m32r-fpu supports compound instructions such as load & address update and store & address update. th ese instructions help to speed up data transfers. (2) six-stage pipelined processing ? the m32r-fpu supports six-stage pipelined instruction processing. not just load/store instructions and register-to-register operation instructions, but also floating-point arithmetic instructions and compound instructions such as load & address update and store & address update ar e executed in one cpuclk period (which is equivalent to 12.5 ns when f(cpuclk) = 80 mhz). ? although instructions are supplied to the execution stage in the order in which they were fetched, it is possible that if the load/store instruction supplied first is extended by wait cycles inserted in memory access, the subsequent register-to-register operation in struction will be executed before that instruction. using such a facility, which is known as the ?out-o f-order-completion? mechanis m, the m32r-fpu is able to control instruction execution without wasting clock cycles. (3) compact instruction code ? the m32r-fpu supports two instruction formats: one 16 bits long, and one 32 bits long. use of the 16-bit instruction format especially helps to suppress the code size of a program. ? moreover, the availability of 32-bit instructions makes programming easier and provides higher performance at the same clock speed than in arch itectures where the address space is segmented. for example, some 32-bit instructions allow control to jump to an addr ess 32 mbytes forward or backward from the currently executed address in on e instruction, making programming easy. rev.1.00 dec 01, 2004 page 3 of 12 rej03b0116-0100z 32186 group 1.1 outline of the 32186 group 1.1.2 built-in mult iplier/accumulator (1) built-in high-speed multiplier ? the m32r-fpu contains a 32 bits 16 bits high-speed multiplier which enables the m32r-fpu to execute a 32 bits 32 bits integral multiplication instruction in three cpuclk periods. (2) dsp-comparable multiply-accumulate instructions ? the m32r-fpu supports the following four types of multiply-accumulate instru ctions (or multiplication instructions) which each can be executed in one cpuclk pe riod using a 56-bit accumulator. (1) 16 high-order bits of register 16 high-order bits of register (2) 16 low-order bits of register 16 low-order bits of register (3) all 32 bits of register 16 high-order bits of register (4) all 32 bits of register 16 low-order bits of register ? the m32r-fpu has some special instru ctions to round the va lue stored in the accumu lator to 16 or 32 bits or shift the accumulator value before storing in a re gister to have its digits adjusted. because these instructions too are executed in one cpuclk period , when used in combination with high-speed data transfer instructions such as load & address update or store & addr ess update, they enable the m32r- fpu to exhibit superior data processing capability comparable to that of a dsp. 1.1.3 built-in single-precision fpu ? the m32r-fpu supports single-precision floating- point arithmetic fully compliant with ieee 754 standards. specifically, five exce ptions specified in ieee 754 standards (inexact, underflow, division by zero, overflow and invalid operation) and four roundi ng modes (round to nearest, round toward 0, round toward + infinity and round towa rd ? infinity) are suppo rted. what?s more, because general-purpose registers are used to perform floating-point arithmetic, the overhead associated with transferring the operand data can be reduced. 1.1.4 built-in flash memory and ram ? the 32186 contains a ram that can be accessed with zero wait state, allowing to design a high-speed embedded system. ? the internal flash memory can be written to while mounted on a printe d circuit board (on-board writing). use of flash memory facilitates development work, b ecause the chip used at th e development stage can be used directly in mass-production, allowing for a smooth transition from prototype to mass-production without the need to change the printed circuit board. ? the internal flash memory can be rewritten as many as 100 times. ? the internal flash memory has a virtual flash em ulation function, allowing the internal ram to be superficially mapped into part of the internal flas h memory. when combined with the internal real-time debugger (rtd) and the m32r family?s common debu g interface (scalable debug interface or sdi), this function makes the rom table data tuning easy. ? the internal ram can be accessed for reading or rewriting data from an external device independently of the m32r-fpu by using the real-time debugger. the ex ternal device is commun icated using the real- time debugger?s exclusive clock-synchronous serial interface. rev.1.00 dec 01, 2004 page 4 of 12 rej03b0116-0100z 32186 group 1.1 outline of the 32186 group 1.1.5 built-in clock frequency multiplier ? the 32186 contains a clock frequency multiplier, which is schematically shown in figure 1.1.1 below. figure 1.1.1 conceptual diagram of the clock frequency multiplier 1.1.6 powerful peripher al functions built-in (1) 8-level interrupt controller (icu) (2) 10-channel dmac (3) 55-channel multijunction timers (mjt) (4) 16-channel a/d converter (adc) (5) 6-channel serial interface (sio) (6) 2-channel full-can (7) direct ram interface (dri) (8) real-time debugger (rtd) (9) non-break debug (nbd) (10) wait controller (11) m32r family?s common debug function (scalable debug interface or sdi) table 1.1.1 clock functional block features cpuclk ? cpu clock: defined as f(cpuclk) wh en it indicates the operating clock frequency for the m32r-fpu core, internal flash memory and internal ram. bclk ? peripheral clock: defined as f(bclk) when it indicates the operating clock frequency for the internal peripheral i/o and external data bus. clock output ? bclk pin output: a clock with the same frequency as f(bclk) is output from this pin. ? clkout pin output: a clock with the same or half frequency as f(bclk) is output from this pin. x8 1/4 pll 1/2 clko sel clkout(external bus clock) (20mhz or 10mhz) xin pin (10mhz) bclk (peripheral clock) (20mhz) cpuclk (cpu clock) (80mhz) rev.1.00 dec 01, 2004 page 5 of 12 rej03b0116-0100z 32186 group 1.2 block diagram 1.2 block diagram figure 1.2.1 shows a block diagram of the 32186. the features of each block are described in table 1.2.1. figure 1.2.1 block diagram of the 32186 m32r-fpu core (max. 80mhz) non-break debug (nbd) direct ram interface (dri) multiplier/accumulator (32 bits x 16 bits + 56 bits) single-precision fpu (fully ieee 754 compliant) internal 32-bit bus internal 32-bit bus internal flash memory (1 mbyte ) internal ram (64 kbytes) pll clock generator internal power supply generator (vdc) address data external bus interface input/output ports, 97 lines real-time debugger (rtd) internal bus interface dmac (10 channels) multijunction timer (mjt: 55 channels) a/d converter (a/d0 : 10-bit converter, 16 channels) serial interface (6 channels) interrupt controller (8 levels) internal 16-bit bus wait controller full can (2 channels) rev.1.00 dec 01, 2004 page 6 of 12 rej03b0116-0100z 32186 group 1.2 block diagram table 1.2.1 features of the 32186 (1 / 2) functional block features m32r-fpu cpu core ? implementation: si x-stage pipelined instruction processing ? internal 32-bit structure of the core ? register configuration general-purpose regi sters: 32 bits 16 registers control registers: 32 bits 6 registers ? instruction set 16 and 32-bit instruction formats 100 discrete instructions and six addressing modes ? internal multiplier/accumulator (32 bits 16 bits + 56 bits) ? internal single-precision floating-point arithmetic unit (fpu) internal flash memory ? capacity: 1 mbyte (1, 024 kbytes), accessible with one wait state ? durability: rewritable 100 times internal ram ? capacity: 64 kbytes , accessible with zero wait state ? the internal ram can be accessed for reading or rewriting data from the outside independently of the m32r-fpu by usin g the real-time debugger, without ever causing the cpu performance to decrease. bus specification ? fundamental bus cycle: 12.5 ns (when f(cpuclk) = 80 mhz) ? logical address space: 4 gbytes linear ? internal bus specification: internal 32-bit data bus (for cpu <-> internal flash memory and ram access)(or accessed in 64 bits when accessing the internal flash memory for instructions) : internal 16-bit data bus (for internal peripheral i/o access) ? external extension area: during processor mode: maximum 32 mbytes during external extension mode: maximum 31 mbytes (7 mbytes + 8 mbytes 3 blocks) ? external data address: 22-bit address ? external data bus: 16-bit data bus ? shortest external bus access: 1 clkout during read, 1 clkout during write multijunction timer (mjt) ? 55-channel multi-functional timer 16-bit output related timer 11 channel s, 16-bit input/output related timer 10 channels, 16-bit input related timer 8 channels, 32-bit input related timer 8 channels, 16-bit input related up/down time r 2 channels, and 24-bit output related timer 16 channels ? flexible timer configuration is possibl e by interconnecting these timer channels. ? interrupt request: counter underflow or overflow and rising or falling or both edges or high or low level from the tin pin (tin pin can be used as external interrupt inputs irrespective of timer operation.) ? dma transfer request: counter underflow or overflow and rising or falling or both edges or high or low level from the tin pin (tin pin can be used as dma transfer request inputs irrespective of timer operation.) dmac ? number of channels: 10 ? transfers between internal peripheral i/o? s or internal ram?s or between internal peripheral i/o and internal ram are supported. ? capable of advanced dma transfers when us ed in combination with internal peripheral i/o ? transfer request: software or internal peri pheral i/o (a/d converter, mjt, serial interface or can) ? dma channels can be cascaded. (dma transfer on a channel can be started by completion of a transfer on another channel.) ? interrupt request: dma transfer counter register underflow a/d converter (adc) ? 16 channels: 10-bit resolution a/d converter 1 blocks ? conversion modes: in addition to ordinary a/d conversion modes, the adc incorporates comparator mode and 2-channel simultaneous sampling mode. ? operation modes: single conversion mode and n-channel scan mode (n = 1?16) ? sample-and-hold function: performs a/d conversion with the analog input voltages sampled at start of a/d conversion. rev.1.00 dec 01, 2004 page 7 of 12 rej03b0116-0100z 32186 group 1.2 block diagram a/d converter (adc) ? a/d disconnection detection assist function: suppresses effects of the analog input voltage leakage from the preceding channel during a/d conversion. ? an inflow current bypass circuit is built-in. ? can generate an interrupt or start dma tr ansfer upon completion of a/d conversion. ? either 8 or 10-bit conversion results can be read out. ? interrupt request: completion of a/d conversion ? dma transfer request: completion of a/d conversion serial interface (sio) ? 6-channel serial interface ? can be chosen to be clock-synchronous serial interface or clock-asynchronous serial interface. ? data can be transferred at high speed (2 mb its per second during clock-synchronous mode or 1.25 mbits per second during clock-asynchronous mode when f(bclk) = 20 mhz). ? interrupt request: reception completed, receive error, transmit buffer empty or transmission completed ? dma transfer request: reception comp leted or transmit buffer empty can ? 32 message slots 2 blocks ? compliant with can specification 2.0b active. ? interrupt request: transmissi on completed, reception co mpleted, bus error, error- passive, bus-off or single shot ? dma transfer request: failed to send, tran smission completed or reception completed real-time debugger (rtd) ? internal ram can be rewritten or monitored independently of the cpu by entering a command input from the outside. ? comes with exclusive clock-synchronous serial ports. ? interrupt request: rtd interrupt command input non-break debug (nbd) ? can access to all resources on the address map from the outside ? clock-synchronous parall el interface (4-bit) ? event output function ? ram monitor function direct ram interface (dri) ? can control capture of clock-synchronous parallel data to the internal ram independently of the cpu ? clock-synchronous parallel input (8, 16 or 32-bit) ? maximum transfer rate: 20 mbytes/sec (when f(cpuclk) = 80 mhz). interrupt controller (icu) ? controls interrupt requests fr om the internal peripheral i/o. ? supports 8-level interrupt priority including an interrupt disabled state. ? external interrupt: 27 sour ces (sbi#, tin0, tin3?tin11, tin16?tin27, tin30?tin33) ? tin pin input sensing: rising, falling or both edges or high or low level wait controller ? controls wait states for access to the external extension area. ? insertion of 0?15 wait states by setting up in software + wait state extension by entering wait# signal pll ? a multiply-by-8 clock generating circuit clock ? external input clock fr equency (xin) is 10.0 mhz. ? cpuclk: operating clock for the m32r-fpu co re, internal flash memory and internal ram the cpu clock is 80 mhz (when f(xin) = 10 mhz). ? bclk: operating clock for the internal peripheral i/o and external data bus the peripheral clock is 20 mhz (peripheral module access when f(xin) = 10 mhz). ? bclk pin output: a clock with the same frequency as f(bclk) is output from this pin. ? clkout pin output: a clock with the same or half frequency as f(bclk) is output from this pin. jtag ? boundary scan function vdc ? internal power supply generating circuit: generates the internal power supply from an external power supply (5 or 3.3 v). ports ? input/output pins: 97 pins ? the port input threshold can be set in a program to one of three levels individually for each port group (with or without schmitt circuit, selectable). table 1.2.1 features of the 32186 (2 / 2) functional block features rev.1.00 dec 01, 2004 page 8 of 12 rej03b0116-0100z 32186 group 1.3 pin functions 1.3 pin functions figure 1.3.1 shows the 32186?s pin function diagr am. pin functions are de scribed in table 1.3.1. figure 1.3.1 pin function diagram 32186 group note 1: mod2 must be connected to the ground (gnd). notes: . the pin (signal) with "#" at the end of the pin name (signal name) indicates it is a low active pin (signal). . : operates with vcce power supply : operates with vcc-bus power supply xin clock multi- junction timer multi- junction timer data bus dri nbd address bus reset port 0 port 1 port 2 port 3 multi- junction timer multi- junction timer serial i/o can address bus bus control bus control/ clock real time debugger port 4 port 7 flash interrupt controller mode a/d converter xout reset# mod0 mod1 16 mod2 (note 1) fp port 6 p61-p63 p70/clkout/wr#/bclk p71/wait# p72/hreq#/tin27 p73/hack#/tin26 p74/rtdtxd/txd3/nbdd0 p75/rtdrxd/rxd3/nbdd1 p76/rtdack/ctx1/nbdd2 p77/rtdclk/crx1/nbdd3 port 8 power supply p82/txd0/to26 p83/rxd0/to25 p84/sclki0/sclko0/to24 p85/txd1/to23 p86/rxd1/to22 p87/ sclki1/sclko1/to21 vcce excvcc vcc-bus vdde excvdd vss sbi# ad0in0-ad0in15 avcc0 avss0 vref0 p93/to16/sclki5/sclko5 p94/to17/txd5/dd15 p96/to19/dd13 p97/to20/dd12 p100/to8 p41/blw#/ble# p42/bhw#/bhe# p43/rd# p44/cs0#/tin8, p45/cs1#/tin9 p46/a13/tin10, p47/a14/tin11 p00/db0/to21/dd0- p07/db7/to28/dd7 p10/db8/to29/dd8- p17/db15/to36/dd15 p20/a23/dd24- p27/a30/dd31 p30/a15/tin4/dd16- p33/a18/tin7/dd19 multi- junction timer serial i/o port 9 multi- junction timer serial i/o serial i/o address bus bus control can serial i/o can serial i/o can/ bus control nbd dri dri dri port 10 port 13 port 15 bus control/ clock address bus/ bus control port 11 port 12 p130/tin16/pwmoff0/din0 p131/tin17/pwmoff1/din1 p132/tin18/din2 p133/tin19/din3 p134/tin20/txd3/din4 p135/tin21/rxd3 p136/tin22/crx1 p137/tin23/ctx1 p150/tin0/clkout/wr# p153/tin3/wait# p95/to18/rxd5/dd14 p107/to15/rxd4/dd0 p110/to0/to29/dd11- p117/to7/to36/dd4 p124/tclk0/a9/dd3 p125/tclk1/a10/dd2 8 8 8 8 4 p34/a19/tin30/dd20- p37/a22/tin33/dd23 4 2 2 3 2 2 6 2 p101/to9/crx0 p102/to10/ctx0 p103/to11/tin24 p104/to12/tin25/dd3 p105/to13/sclki4/sclko4/dd2 p106/to14/txd4/dd1 p126/tclk2/cs2#/dd1 p127/tclk3/cs3#/dd0 port 22 jtag p220/ctx0/hack# p221/crx0/hreq# p224/a11/cs2# jtrst jtms jtck/nbdclk jtdo/nbdevnt# jtdi/nbdsync# p225/a12/cs3# port 17 p174/txd2/to28 p175/rxd2/to27 vccer vcce vcce vcc-bus vcce vcc-bus vcce vcc-bus vcc-bus vcce vcc-bus vcce rev.1.00 dec 01, 2004 page 9 of 12 rej03b0116-0100z 32186 group 1.3 pin functions table 1.3.1 description of pin functions (1 / 3) type pin name signal name input/output description power supply vccer internal power supply input ? power supply input for the internal voltage generator circuit (5.0 v 0.5 v or 3.3 v 0.3 v) vcce port/internal peripheral i/o pin power supply input ? power supply input for the port and internal peripheral i/o pins (5.0 v 0.5 v or 3.3 v 0.3 v). apply same voltage to the all vcce pins. vcc-bus port/bus interface pin power supply input ? power supply input for the port and bus interface pins (5.0 v 0.5 v or 3.3 v 0.3 v). apply same voltage to the all vcc-bus pins. vdde ram power supply ? backup power supply input for the internal ram (5.0 v 0.5 v or 3.3 v 0.3 v). vss ground ? connect all vss pins to ground (gnd). excvcc vccer control ? this pin connects an external capacitor for the internal voltage generator circuit. excvdd vdde control ? this pin connects an external capacitor for the internal power supply of the internal ram. clock xin, xout clock input clock output input output these are clock input/output pins. a pll-based 8 frequency multiplier is included, which accepts as input a clock whose frequency is 1/8 of the internal cpu clock frequency. (xin input is 10 mhz when f(cpuclk) = 80 mhz.) clkout, bclk system clock output the clkout pin outputs a clock that is equal to the external input clock frequency, xin (i.e., clkout output is 10 mhz when f(cpuclk) = 80 mhz), or two times of xin (i.e.,clkout output is 20 mhz when f(cpuclk) = 80 mhz). this clock is used when operations are synchronous external to the chip. the bclk pin outputs a clock that is two times the external input clock frequency, xin (i.e., bclk output is 20 mhz when f(cpuclk) = 80 mhz). reset reset# reset input reset in put pin for the internal circuit. mode mod0 ? mod2 mode input set the microcomputer?s operation mode. mod0 mod1 mod2 mode l l l single-chip mode l h l external extension mode h l l processor mode (boot mode) (note 1) h h l (settings inhibited) x x h (settings inhibited) x: don?t care flash fp flash protect input this special pin protects the flash memory against rewrites in hardware. address bus a9?a30 address bus output twenty-two address lines (a9?a30) are included, allowing four blocks each up to 8 mb memory space to be connected exte rnal to the chip. a31 is not output. note 1: boot mode requires that the fp pin should be at the high level. rev.1.00 dec 01, 2004 page 10 of 12 rej03b0116-0100z 32186 group 1.3 pin functions data bus db0?db15 data bus input/output this 16-bit data bus is used to connect external devices. when writing in byte units during a write cycle, the output data at the invalid byte position is undefined. during a read cycle, data on the entire 16-bit bus is always read in. however, only the data at the valid byte position is transferred into the internal circuit. bus control cs0#?cs3# chip select output these are chip select signals for external devices. rd# read output this signal is output when reading an external device. wr# write output this signal is ou tput when writing to an external device. bhw#/blw# byte high/low write output when wr iting to an external device, this signal indicates the valid byte position to which data is transferred. bhw# and blw# correspond to the upper address side (bits 0?7 are valid) and the lower address side (bits 8?15 are valid), respectively. bhe# byte high enable output during an external device access, this signal indicates that the high-order data (bits 0?7) is valid. ble# byte low enable output during an external device access, this signal indicates that the low-order data (bits 8?15) is valid. wait# wait input when accessing an external device, a low-level input on wait# pin extends the wait cycle. hreq# hold request input th is input pin is used by an external device to request control of the external bus. a low-level input on hreq# pin places the cpu in a hold state. hack# hold acknowledge output this signal notifies that the cpu has entered a hold state and relinquished control of the external bus. multijunction timer tin0, tin3?tin11, tin16?tin27, tin30?tin33 timer input input input pins for the multijunction timer. to0?to36 timer output output output pins for the multijunction timer. tclk0 ?tclk3 timer clock input clock input pins for the multijunction timer. a/d converter avcc0 analog power supply input ? avcc0 is the power supply input for the a/d0 converter. connect avcc0 to the power supply rail. avss0 analog ground ? avss0 is the analog ground for the a/d0 converter. connect avss0 to ground. ad0in0 ?ad0in15 analog input input 16-channel analog input pins for the a/d0 converter. vref0 reference voltage input input vref0 is the reference voltage input pin for the a/ d0 converter. interrupt controller sbi# system break interrupt input this is the system break interrupt (sbi) input pin for the interrupt controller. serial interface sclki0/sclko0, sclki1/sclko1, sclki4/sclko4, sclki5/sclko5 uart transmit/ receive clock output or csio transmit/ receive clock input/ output input/output when in uart mode: this pin outputs a clock derived from brg output by dividing it by 2. when in csio mode: this pin accepts as input a transmit/receive clock when external clock is selected or outputs a transmit/receive clock when internal clock is selected. txd0 ? txd5 transmit data output transmit data output pin for serial interface. rxd0 ? rxd5 received data input received data input pin for serial interface. table 1.3.1 description of pin functions (2 / 3) type pin name signal name input/output description rev.1.00 dec 01, 2004 page 11 of 12 rej03b0116-0100z 32186 group 1.3 pin functions note 1: input/output ports 5, 14, 16 and 18 ? 21 are nonexistent. note 2: p221 is input-only port. real-time debugger (rtd) rtdtxd rtd transmit data output serial data output pin for the real-time debugger. rtdrxd rtd received data input serial data input pin for the real-time debugger. rtdclk rtd clock input input serial data transmit/receive clock input pin for the real-time debugger. rtdack rtd acknowledge output a low-level pulse is output from this pin synchronously with the start clock for the real-time debugger?s serial data output word. the low-level pulse width indicates the type of command/data received by the real-time debugger. can ctx0, ctx1 transmit data output this pin outputs data from the can module. crx0, crx1 received data input this pin accepts as input the data for the can module. jtag jtms test mode select input test mode se lect input to control the state transition of the test circuit. jtck test clock input clock input for the debug module and test circuit. jtrst test reset input test reset in put to initialize the test circuit asynchronously with device operation. jtdi test data input input this pin accepts as input the test instruction code or test data that is serially received. jtdo test data output output this pin out puts the test instruction code or test data serially. nbd nbdd0 ?nbdd3 command/address/ data input/output nbd command, address, and data input/output pins. nbdclk synchronizing clock input input nbd synchronizing clock input pin. nbdsync# top of data input input this pin controls the start position of nbd data. nbdevnt# event output output this pin is used for event output when an nbd event occurs. dri dd0?dd31 dd input input dri data input pin. din0?din4 din input input dri event input pin. input/output ports (note 1) p00?p07 input/output port 0 input/output programmable input/output port. p10?p17 input/output port 1 input/output p20?p27 input/output port 2 input/output p30?p37 input/output port 3 input/output p41?p47 input/output port 4 input/output p61?p63 input/output port 6 input/output p70?p77 input/output port 7 input/output p82?p87 input/output port 8 input/output p93?p97 input/output port 9 input/output p100?p107 input/output port 10 input/output p110?p117 input/output port 11 input/output p124?p127 input/output port 12 input/output p130?p137 input/output port 13 input/output p150, p153 inpu t/output port 15 input/output p174, p175 inpu t/output port 17 input/output p220, p221 (note 2), p224, p225 input/output port 22 input/output table 1.3.1 description of pin functions (3 / 3) type pin name signal name input/output description rev.1.00 dec 01, 2004 page 12 of 12 rej03b0116-0100z 32186 group 1.4 pin assignments 1.4 pin assignments figure 1.4.1 shows the 32186?s pin assignment diagram. figure 1.4.1 pin assignment diagram (top view) 32186 group 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 vss p87/sclki1/sclko1/to21 p86/rxd1/to22 p85/txd1/to23 p84/sclki0/sclko0/to24 p83/rxd0/to25 p82/txd0/to26 vccer p175/rxd2/to27 p174/txd2/to28 vss excvcc avss0 ad0in15 ad0in14 ad0in13 ad0in12 ad0in11 ad0in10 ad0in9 ad0in8 ad0in7 ad0in6 ad0in5 ad0in4 ad0in3 ad0in2 ad0in1 ad0in0 avcc0 vref0 p17/db15/to36/dd15 p16/db14/to35/dd14 p15/db13/to34/dd13 p14/db12/to33/dd12 p13/db11/to32/dd11 p221/crx0/hreq# p225/a12/cs3# vss xin xout vcc-bus p224/a11/cs2# p30/a15/tin4/dd16 p31/a16/tin5/dd17 p32/a17/tin6/dd18 p33/a18/tin7/dd19 p34/a19/tin30/dd20 p35/a20/tin31/dd21 p36/a21/tin32/dd22 p37/a22/tin33/dd23 p20/a23/dd24 p21/a24/dd25 p22/a25/dd26 p23/a26/dd27 vcc-bus vss p24/a27/dd28 p25/a28/dd29 p26/a29/dd30 p27/a30/dd31 p00/db0/to21/dd0 p01/db1/to22/dd1 p02/db2/to23/dd2 p03/db3/to24/dd3 p04/db4/to25/dd4 p05/db5/to26/dd5 p06/db6/to27/dd6 p07/db7/to28/dd7 p10/db8/to29/dd8 p11/db9/to30/dd9 p12/db10/to31/dd10 jtms jtck/nbdclk jtrst jtdo/nbdevnt# jtdi/nbdsync# p103/to11/tin24 p104/to12/tin25/dd3 p105/to13/sclki4/sclko4/dd2 p106/to14/txd4/dd1 p107/to15/rxd4/dd0 p124/tclk0/a9/dd3 p125/tclk1/a10/dd2 p126/tclk2/cs2#/dd1 p127/tclk3/cs3#/dd0 mod2(note 1) p130/tin16/pwmoff0/din0 p131/tin17/pwmoff1/din1 p132/tin18/din2 p133/tin19/din3 p134/tin20/txd3/din4 p135/tin21/rxd3 p136/tin22/crx1 p137/tin23/ctx1 vcce p150/tin0/clkout/wr# p153/tin3/wait# p41/blw#/ble# p42/bhw#/bhe# excvcc vss p43/rd# p44/cs0#/tin8 p45/cs1#/tin9 p46/a13/tin10 p47/a14/tin11 p220/ctx0/hack# vdde p102/to10/ctx0 p101/to9/crx0 p100/to8 p117/to7/to36/dd4 p116/to6/to35/dd5 p115/to5/to34/dd6 p114/to4/to33/dd7 p113/to3/to32/dd8 p112/to2/to31/dd9 p111/to1/to30/dd10 p110/to0/to29/dd11 vss vcce fp mod1 mod0 reset# p97/to20/dd12 p96/to19/dd13 p95/to18/rxd5/dd14 p94/to17/txd5/dd15 p93/to16/sclki5/sclko5 p77/rtdclk/crx1/nbdd3 p76/rtdack/ctx1/nbdd2 p75/rtdrxd/rxd3/nbdd1 p74/rtdtxd/txd3/nbdd0 p73/hack#/tin26 p72/hreq#/tin27 p71/wait# p70/clkout/wr#/bclk sbi# p63 p62 p61 excvdd package: 144p6q-a(0.5-mm pitch) note 1: mod2 must be connected to the ground (gnd). note: ? the symbol "#" suffixed to the pin (or signal) names means that the pins (or signals) are active-low. rev.0.01 sep 21, 2004 page 13 of 14 rej03b0116-0001z 32186 group 2.1 outline of the address space 2.1 outline of the address space the logical addresses of the m32r are always handled in 32 bits, providing a linear address space of up to 4 gbytes. the address space of the m32r/ecu consists of the following: (1) user space ? internal rom area ? external extension area ? internal ram area ? sfr (special function register) area the 2 gbytes from the address h?0000 0000 to the address h?7fff ffff comprise th e user space. located in this space are the internal rom area, an external extension area, the internal ram area and the sfr (special function register) area (in which a set of internal peri pheral i/o registers exist). of these, the internal rom and external extension areas are located differently depe nding on mode settings as will be described later. (2) system space (not open to the user) the 2 gbytes from th e address h?8000 00 00 to the address h?ffff ffff co mprise the syst em space. this space (except for sfr area for nbd control) is reserved for use by development tools such as an in-circuit emulator and debug monitor. 2.2 operation modes the microcomputer is placed in one of the followi ng modes depending on how cpu operation mode is set by mod0 and mod1 pins. note 1: connect vcce and vss to the vcce i nput power supply and ground, respectively. the internal rom and external extens ion areas are located differently depe nding on how operation mode is set. (all other areas in the address space are located the same way.) the foll owing diagram shows how the internal rom and external extension areas are mapped into the address space in each operation mode. table 2.2.1 operation mode settings mod0 mod1 mod2 (note 1) operation mode vss vss vss single-chip mode vss vcce vss external extension mode vcce vss vss processor mode (fp = vss) vcce vcce vss (settings inhibited) ? ? vcce (settings inhibited) rev.0.01 sep 21, 2004 page 14 of 14 rej03b0116-0001z 32186 group 2.2 operation modes figure 2.2.1 address space logical address single chip mode external extension mode processor mode logical address (64 mbyte) cs3 area (8 mbyte) sfr area (16 kbyte) internal ram area (64 kbyte) h'0000 0000 h'7fff ffff h'0000 0000 h'ffff ffff h'8000 0000 h'007f ffff h'0080 0000 h'0010 0000 h'0080 4000 h'0081 3fff h'0081 4000 h'00ff ffff h'03ff ffff h'0380 0000 h'037f ffff h'0300 0000 h'02ff ffff h'0280 0000 h'027f ffff h'0200 0000 h'01ff ffff h'0180 0000 h'017f ffff h'0100 0000 h'000f ffff h'0080 3fff internal rom area (1 mbyte) note: cs0?cs3 areas: extension areas of up to 32 mbytes user space system space 2 gbytes 2 gbytes cs3 area (8 mbyte) cs2 area (8 mbyte) cs2 area (8 mbyte) cs1 area (8 mbyte) cs1 area (8 mbyte) cs0 area (8 mbyte) cs0 area (7 mbyte) internal rom area (1 mbyte) sfr area (16 kbyte) internal ram area (64 kbyte) (64 mbyte) (64 mbyte) (64 mbyte) ghost area in 64-mbyte units sfr area (16 kbyte) internal ram area (64 kbyte) h'e000 0000 nbd control rev.0.01 sep 21, 2004 page 15 of 16 rej03b0116-0001z 32186 group 3.1 outline of the interrupt controller 3.1 outline of the interrupt controller the interrupt controller (icu) manages maskable interr upts from internal peripheral i/os and a system break interrupt (sbi). the maskable interrupts from internal pe ripheral i/os are sent to the m32r cpu as external interrupts (ei). the maskable interrupts from internal peripheral i/os ar e managed by assigning them one of eight priority levels including an interrupt-disabled state. if two or more interrupt requests with the same priority level occur at the same time, their priorities are resolved by predetermined hardware priority. the source of an interrupt request generated in internal peripheral i/os is identified by r eading the relevant interrupt status register provided for internal peripheral i/os. on the other hand, the system break interrupt (sbi) is r ecognized when a low-going tr ansition occurs on the sbi# signal input pin. this interrupt is used for emergency purp oses such as when power outage is detected or a fault condition is notified by an external watchdog tim er, so that it is always accepted irrespective of the psw register ie bit status. when the cpu has finished servicing an sbi, shut down or reset the system without returning to the program that was being executed when the interrupt occurred. specifications of the interrupt controller are outlined below. note 1: there are actually 256 interrupt request resources in total when counted individually, which are grouped into 40 interrupt request resources. table 3.1.1 outline of the interrupt controller (icu) item specification interrupt request source maskable interrupt requests from internal peripheral i/os: 40 sources (note 1) system break interrupt request: 1 source (entered from sbi# pin) priority management 8 priority levels including an interrupt-disabled state (however, interrupts with the same priority level have their priorities resolved by fixed hardware priority.) rev.0.01 sep 21, 2004 page 16 of 16 rej03b0116-0001z 32186 group 3.1 outline of the interrupt controller figure 3.1.1 block diagram of the interrupt controller interrupt vector register (ivect) interrupt request mask register (imask) new_imask external interrupt (ei) request generated (maskable) imask compari- son ilevel system break interrupt (sbi) request generated (nonmaskable) sbi# ei sbi interrupt controller interrupt control register sbi control register (sbicr) sbireq ireq ireq ireq ireq ireq ireq peripheral circuits edge interrupt control circuit edge edge level interrupt request interrupt request interrupt request level level to the cpu core to the cpu core interrupt control circuit interrupt control circuit priority resolved by interrupt priority levels set priority resolved by fixed hardware priority rev.0.01 sep 21, 2004 page 17 of 22 rej03b0116-0001z 32186 group 4.1 outline of input/output ports 4.1 outline of input/output ports the 32186 has a total of 97 input/output ports from p0?p13, p15, p17 and p22 (except p5, which is reserved for future use). these input/output ports can be used as input or output ports by setting the respective direction registers. each input/output port has double or triple functions sh ared with other internal pe ripheral i/o or external bus interface related signal lines, or mult iple functions shared with multi-function peripheral i/os. pin functions are selected depending on the operation mode of the cpu or by setting the operation mo de register and peripheral function select register for the input/output port. (if any internal peripheral i/o has still another function, it is also necessary to set the register provide d for that internal peripheral i/o.) abundant port functions are incorporated, including a port input level switching function, port output drive capability setting function, and noise canceller control function. note that before any ports can be used in input mode, th is port input function enable bit must be set accordingly. the input/output ports are outlined below. note : ? p5, p14, p16, p18-p21 are nonexist. table 4.1.1 outline of input/output ports item specification number of ports total 97 ports p0 : p1 : p2 : p3 : p4 : p6 : p7 : p8 : p9 : p10 : p11 : p12 : p13 : p15 : p17 : p22 : p00?p07 (8 ports) p10?p17 (8 ports) p20?p27 (8 ports) p30?p37 (8 ports) p41?p47 (7 ports) p61?p63 (3 ports) p70?p77 (8 ports) p82?p87 (6 ports) p93?p97 (5 ports) p100?p107 (8 ports) p110?p117 (8 ports) p124?p127 (4 ports) p130?p137 (8 ports) p150, p153 (2 ports) p174, p175 (2 ports) p220, p221, p224, p225 (4 ports) port function the input/output ports can individually be set for input or output mode using the direction control register provided for each input/outpu t port. (however, p221 is an input-only port.) pin function shared with peripheral i/o or external bus interface signals to serve dual-functions (or shared with two or more peripheral i/o functions to serve multiple functions) rev.0.01 sep 21, 2004 page 18 of 22 rej03b0116-0001z 32186 group 4.2 selecting pin functions 4.2 selecting pin functions each input/output port serves dual functions sharing the pin with other internal peripheral i/o or external bus interface signal lines (or multiple functions sharing the pin with two or more peripheral i/o functions). pin functions are selected depending on the operation mode of the cpu or by setting the operation mode register and peripheral function select register for the input/output port. p0?p4, p124, p125, p224 and p225, when the cpu is set to operate in processor mode, all are switched to serve as signal pins for exte rnal access. the cpu operation mode is determined dependin g on how the mod0 and mod1 pins are set (see the table below). note 1: p41?p43 only function as external bus interface signal pins. note : ? vcce and vss are connected to ma in power supply and gnd, respectively. each input/output port has their functions switched between input/output port pins and internal peripheral i/o pins by setting the respective port operation mode and peripheral func tion select registers. if any internal peripheral i/o has two or more pin functions, use the register provided for that internal peripheral i/o to select the desired pin function. note that fp and mod1 pin operations during internal flash memory programming do not affect the pin functions. table 4.2.1 cpu operation modes and p0?p4, p124, p125, p224 and p225 pin functions mod0 mod1 operation mode p0?p4, p124, p125, p224 and p225 pin function vss vss single-chip mode input/output port pin vss vcce external extension mode input/output port or external bus interface signal pin (note 1) vcce vss processor mode external bus interface signal pin vcce vcce (settings inhibited) ? rev.0.01 sep 21, 2004 page 19 of 22 rej03b0116-0001z 32186 group 4.2 selecting pin functions figure 4.2.1 input/output ports and pin func tion assignments during single chip mode 0 1 2 3 4 5 6 7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 to21 / to22 / to23 / to24 / to25 / to26 / to27 / to28 / dd0 dd1 dd2 dd3 dd4 dd5 dd6 dd7 clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk( note 2) nbdd0 nbdd1 nbdd2 nbdd3 to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd8 dd9 dd10 dd11 dd12 dd13 dd14 dd15 tclk0 / tclk1 / tclk2 / tclk3 / dd3 dd2 dd1 dd0 tin0 / tin3 / clkout / wait# wr#( note 2) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 tin4 / tin5 / tin6 / tin7 / tin30 / tin31 / tin32 / tin33 / dd16 dd17 dd18 dd19 dd20 dd21 dd22 dd23 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / ( note 1) ( note 1) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 dd24 dd25 dd26 dd27 dd28 dd29 dd30 dd31 p41 p42 p43 tin8 tin9 tin10 tin11 ( port only) ( port only) ( port only) p61 p62 p63 sbi# ( port only) ( port only) ( port only) ( note 1) txd2 / rxd2 / to28 to27 ctx0 / crx0 / p224 p225 hack# hreq# ( port only) ( port only) pin functions are selected by the settings for the port operation mode and port peripheral function select registers pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers note 1: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from th ese ports. note 2: respective functions are selected by the bus mode control register. note : p5, p14, p16, p18, p19, p20 and p21 are not provided. rev.0.01 sep 21, 2004 page 20 of 22 rej03b0116-0001z 32186 group 4.2 selecting pin functions figure 4.2.2 input/output ports and pin function assignments during external extension mode 0 1 2 3 4 5 6 7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 db0 / db1 / db2 / db3 / db4 / db5 / db6 / db7 / to21 / to22 / to23 / to24 / to25 / to26 / to27 / to28 / dd0 dd1 dd2 dd3 dd4 dd5 dd6 dd7 blw# / bhw# / rd# cs0# / cs1# / a13 / a14 / ble# bhe# ( note 1) tin8 tin9 tin10 tin11 ( note 1, 3) ( note 1, 3) clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk (note 3) nbdd0 nbdd1 nbdd2 nbdd3 db8 / db9 / db10 / db11 / db12 / db13 / db14 / db15 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd8 dd9 dd10 dd11 dd12 dd13 dd14 dd15 tclk0 / tclk1 / tclk2 / tclk3 / a9 / a10 / cs2# / cs3# / dd3 dd2 dd1 dd0 tin0 / tin3 / clkout / wait# wr# (note 3) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 a15 / a16 / a17 / a18 / a19 / a20 / a21 / a22 / tin4 / tin5 / tin6 / tin7 / tin30 / tin31 / tin32 / tin33 / dd16 dd17 dd18 dd19 dd20 dd21 dd22 dd23 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / (note 2) (note 2) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 a23 / a24 / a25 / a26 / a27 / a28 / a29 / a30 / dd24 dd25 dd26 dd27 dd28 dd29 dd30 dd31 p61 p62 p63 sbi# (port only) (port only) (port only) (note 2) txd2 / rxd2 / to28 to27 ctx0 / crx0 / a11 / a12 / hack# hreq# cs2# cs3# note 1: these ports cannot be used for input/output port function, function as external bus interface related signals. note 2: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from th ese ports. note 3: respective functions are selected by the bus mode control register. note : p5, p14, p16, p18, p19, p20 and p21 are not provided. pin functions are selected by the settings for the port operation mode and port peripheral function select registers pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers rev.0.01 sep 21, 2004 page 21 of 22 rej03b0116-0001z 32186 group 4.2 selecting pin functions figure 4.2.3 input/output ports and pin function assignments during processor mode p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 (note 1) tin16 / tin17 / tin20 / tin18 / tin19 / tin21 / tin22 / tin23 / pwmoff0 / pwmoff1 / txd3 / din2 din3 rxd3 crx1 ctx1 din0 din1 din4 db0 db1 db2 db3 db4 db5 db6 db7 clkout / rtdtxd / rtdrxd / rtdack / rtdclk / hreq# / hack# / wr# / wait# txd3 / rxd3 / ctx1 / crx1 / tin27 tin26 bclk( note 3) nbdd0 nbdd1 nbdd2 nbdd3 db8 db9 db10 db11 db12 db13 db14 db15 tclk2 / tclk3 / a9 a10 cs2# / cs3# / (note 1) (note 1) dd1 dd0 tin0 / tin3 / clkout / wait# wr#( note 3) to0 / to1 / to2 / to3 / to4 / to5 / to6 / to7 / to29 / to30 / to31 / to32 / to33 / to34 / to35 / to36 / dd11 dd10 dd9 dd8 dd7 dd6 dd5 dd4 a15 a16 a17 a18 a19 a20 a21 a22 to12 / to14 / to15 / to9 / to10 / to11 / to8 tin25 / txd4 / rxd4 / crx0 ctx0 tin24 dd3 dd1 dd0 to13 / sclki4 / sclko4 dd2 sclki0 / sclki1 / mod0 mod1 txd0 / rxd0 / txd1 / rxd1 / sclko0 / sclko1 / (note 2) (note 2) to26 to25 to23 to22 to24 to21 to16 / to17 / to18 / to19 / to20 / sclki5 / txd5 / rxd5 / dd13 dd12 sclko5 dd15 dd14 a23 a24 a25 a26 a27 a28 a29 a30 blw# / bhw# / rd# cs0# cs1# a13 a14 ble#( note 3) bhe#( note 3) p61 p62 p63 sbi# ( port only) ( port only) ( port only) (note 2) txd2 / rxd2 / to28 to27 ctx0 / crx0 / a11/cs2# a12/cs3# hack# hreq# (note 1) (note 1) pin functions are selected by the settings for the port operation mode, port peripheral function select and nbd function select registers note 1: these ports cannot be used for input/output port function, function as external bus interface related signals. note 2: these ports cannot be used for input/output port function. the sbi#, mod0 and mod1 pin input levels can be read from th ese ports. note 3: respective functions are selected by the bus mode control register. note : p5, p14, p16, p18, p19, p20 and p21 are not provided. 0 1 2 3 4 5 6 7 rev.0.01 sep 21, 2004 page 22 of 22 rej03b0116-0001z 32186 group 4.3 port input level switching function 4.3 port input level switching function the port input level switching function allows the port thre shold to be switched to one of three voltage levels (with or without schmitt as selected) in units of the following port group. this can be set to the following registers in units of group. note that port inputs are us ed for the dd input of dri. port group 0: p00?p07, p10?p17, p20?p27, p30?p37, p41?p47, p70?p73, p224, p225 port group 1: p82?p87, p174, p175 port group 3: p93?p97, p110?p117 port group 4: p124?p127 port group 5: p61?p63, sbi# port group 6: p74?p77, p100?p107 port group 7: p220, p221 port group 8: p130?p137, p150, p153 figure 4.3.1 port input level switching function vt+ vt- 0.7vcce 0.5vcce 0.35vcce cmos s s s s s wfnsel ptnsel vtnsel standard input level for each peripheral function pin schmitt peripheral function input port input pin threshold input function enable noise canceller s rev.0.01 sep 21, 2004 page 23 of 23 rej03b0116-0001z 32186 group 5.1 outline of the dmac 5.1 outline of the dmac the microcomputer internally contains a 10-channel dmac (direction me mory access controller). it allows data to be transferred at high speed between internal peripheral i/os, between internal ram and internal peripheral i/o, or between internal rams, as initiated by a software trigger or requested from an internal peripheral i/o. note 1: the dma channels can be cascaded in the manner described below. ? start dma transfer on dma1 upon completion of one dma transfer on dma0 ? start dma transfer on dma5 upon completion of all dma transfers on dma0 (upon underflow of the transfer count register) ? start dma transfer on dma2 upon completion of one dma transfer on dma1 ? start dma transfer on dma0 upon completion of one dma transfer on dma2 ? start dma transfer on dma3 upon completion of one dma transfer on dma2 ? start dma transfer on dma4 upon completion of one dma transfer on dma3 ? start dma transfer on dma6 upon completion of one dma transfer on dma5 ? start dma transfer on dma7 upon completion of one dma transfer on dma6 ? start dma transfer on dma5 upon completion of one dma transfer on dma7 ? start dma transfer on dma8 upon completion of one dma transfer on dma7 ? start dma transfer on dma9 upon completion of one dma transfer on dma8 note 2: the source address and destination address cannot go over the bank, which can be only transferred to the same bank or another one from a certain bank. table 5.1.1 outline of the dmac item description number of channels 10 channels transfer request sources ? software trigger ? request from internal peripheral i/os: a/d converter, multijunction timer, serial interface (reception completed, tr ansmit buffer empty), can or dri ? dma channels can be cascaded (note 1) maximum number of times transferred 65,536 times transferable address space (note 2) ? 64 kbytes + 16 kbytes (address space from h?0080 0000 to h?0081 3fff) ? transfers between internal peripheral i/os, between internal ram and internal peripheral i/o, and between internal rams are supported. transfer data size 16 or 8 bits transfer method single transfer dma (control of the internal bus is relinquished for each transfer performed), dual address transfer transfer mode single transfer mode direction of transfer one of three modes ca n be selected for the source and destination: ? address fixed ? address incremental ? ring buffered (can be selected from 32, 16, 8, 4 or 2 times) channel priority dma0 > dma1 > dma2 > dma3 > dma4 > dma5 > dma6 > dma7 > dma8 > dma9 (priority is fixed) maximum transfer rate 13.3 mbytes per second (when internal peripheral clock bclk = 20 mhz) interrupt request group interrupt request can be generated when each transfer count register underflows. transfer area (note 2) 64 kbytes +16 kbytes from h? 0080 0000 to h?0081 3fff (transferable in the entire ram/sfr area) rev.0.01 sep 21, 2004 page 24 of 28 rej03b0116-0001z 32186 group 6.1 outline of multijunction timers 6.1 outline of multijunction timers the multijunction timers (abbreviated mjt) have input event and output event buses. therefore, in addition to being used as a single unit, the timers can be internally connected to each other. this capability allows for highly flexible timer configuration, making it possible to meet various application needs. it is because the timers are connected to the internal event buses at multiple points that they are called the ?multijunction? timers. the 32186 has six types of mjt as listed in the table below, providing a total of 55-channel timers. table 6.1.1 outline of mjt name type no. of channels description top (timer output) output-related 16-bit timer (down-counter) 11 one of three output modes can be selected by software. |
Price & Availability of M32186 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |